<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!--  导入样式，除了表格以外的样式，整个导入进来了  -->
    <link rel="stylesheet" type="text/css" href="/css/public.css" />
    <link rel="stylesheet" type="text/css" href="/css/index.css" />

    <!--  表格的样式  -->
    <style>
        html{
            height: 100%;
        }
        .layui-table{
            /*position: relative;
            top: -300px;
            left: 50%;*/
            width: 600px;
            margin: 50px auto;
            /*margin-left: -200px;*/
            font-size: 14px;
            border-spacing: 0 20px;
        }
        .tbody{
            text-align: center;
        }
        .tb_andio{
            position: absolute;
            left: 50%;
            top: 40%;
            transform: translate(-50%,-50%);
        }

        /*音频*/
        .bose{

        }

        /*“表格上面的样式”*/
        /*.outBox{*/
        /*    min-height: 50%;*/
        /*}*/
        .pp{
            text-align: center;
            font-weight: bolder;
            font-size: large;
            position: relative;
            top: 90px;
            color: red;
        }
    </style>
</head>
<body>

<div class="outBox">

    <!--页头 开始-->
    <div th:include="common/head :: top" class="head"></div>
    <!--页头 结束-->
    <div class="content">
        <div class="logo">
            <img src="/image/common/logo.png" width="150" height="150" alt=""/>
        </div>
        <div class="tableContainer">
            <!--表格-->
            <table class="layui-table" th:if="${session.hasWordEntries == true}" >
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>普通话</th>
                    <th>客家话</th>
                    <th>地区</th>
                    <th>客家话读音</th>
                </tr>
                </thead>
                <tbody class="tbody">
                <!--    返回对象：wordEntry(mandarin   hakka   hakkaPronunciation)-->
                <tr th:each="wordEntry:${wordEntries}">
                    <td th:text="${wordEntry.mandarin}"></td>
                    <td th:text="${wordEntry.hakka}"></td>
                    <td th:text="${wordEntry.place}"></td>
                    <td>
                        <audio th:src=" '/minio/download?fileName=' + ${wordEntry.hakkaPronunciation}" loop="loop" controls="controls"  class="bose"></audio>
                    </td>
                </tr>
                </tbody>
            </table>
            <p class="pp" th:if="${session.hasWordEntries == false}">暂无数据，客语系统会尽快纳入该数据~可尝试输入"你好"</p>
        </div>
    </div>

</div>



<!--表格-->
<!--<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    </thead>
    <tbody class="tb_andio" th:if="${session.word!=null}">
&lt;!&ndash;    返回对象：wordEntry(mandarin   hakka   hakkaPronunciation)&ndash;&gt;
    <tr th:each="wordEntry:${wordEntries}">
        <td th:text="${wordEntry.mandarin}"></td>
&lt;!&ndash;        <td th:text="${wordEntry.hakka}"></td>&ndash;&gt;
&lt;!&ndash;        <td th:text="${wordEntry.hakkaPronunciation}"></td>&ndash;&gt;
        <audio  controls="controls" th:src="${wordEntry.hakkaPronunciation}" autoplay loop="loop" class="bose"></audio>
    </tr>
    </tbody>
</table>-->
</body>
</html>
